import { request } from "../utils";

// 登录获取token
export const loginApi = async (data) => {
    return request({
        url: '/authorizations',
        method: "post",
        data,
    });
}

// 登录获取个人用户信息
export const userProfileApi = async (data) => {
    return request({
        url: '/user/profile',
        method: "get",
        params: data,
    });
}